<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="smart-doc">
    <title>test</title>
    <link rel="stylesheet" href="font.css">
    <link rel="stylesheet" href="AllInOne.css?v=1679282190907"/>
    
    <style>.literalblock pre, .listingblock pre:not(.highlight), .listingblock pre[class="highlight"], .listingblock pre[class^="highlight "], .listingblock pre.CodeRay, .listingblock pre.prettyprint {
        background: #f7f7f8;
    }

    .hljs {
        padding: 0em;
    }</style>
    <script src="highlight.min.js"></script>
    <script src="jquery.min.js"></script>
</head>
<body class="book toc2 toc-left">
<div id="header"><h1>test</h1>
    <div id="toc" class="toc2">
        <div id="book-search-input"><input id="search" type="text" placeholder="Type to search"></div>
        <div id="toctitle"><span>API Reference</span></div>
        <ul id="accordion" class="sectlevel1">
            <li class=""><a class="dd" href="api.html#header">1.&nbsp;接口测试：nacos+dubbo&amp;nacos+feign</a>
                <ul class="sectlevel2" style="display: none">
                    <li><a
                            href="api.html#_1_1_NO1.hello world">1.1.&nbsp;NO1.hello world</a>
                    </li>

                    <li><a
                            href="api.html#_1_2_获取电脑MAC地址1">1.2.&nbsp;获取电脑MAC地址1</a>
                    </li>

                    <li><a
                            href="api.html#_1_3_获取电脑MAC地址2">1.3.&nbsp;获取电脑MAC地址2</a>
                    </li>

                    <li><a
                            href="api.html#_1_4_RPC调用 nacso+dubbo ===> user-server">1.4.&nbsp;RPC调用 nacso+dubbo ===&gt; user-server</a>
                    </li>

                    <li><a
                            href="api.html#_1_5_nacso+dubbo===>user-server">1.5.&nbsp;nacso+dubbo===&gt;user-server</a>
                    </li>

                    <li><a
                            href="api.html#_1_6_RPC调用 nacso+feign===>user-server">1.6.&nbsp;RPC调用 nacso+feign===&gt;user-server</a>
                    </li>

                    <li><a
                            href="api.html#_1_7_获取用户列表-userClient">1.7.&nbsp;获取用户列表-userClient</a>
                    </li>

                    <li><a
                            href="api.html#_1_8_获取订单详情
nacso+feign===>order-server">1.8.&nbsp;获取订单详情<br>nacso+feign===&gt;order-server</a>
                    </li>

                    <li><a
                            href="api.html#_1_9_获取订单列表-orderClient">1.9.&nbsp;获取订单列表-orderClient</a>
                    </li>
                </ul>
            </li>
            <li class=""><a class="dd" href="HotelController.html#header">2.&nbsp;发送MQ消息测试</a>
                <ul class="sectlevel2" style="display: none">
                    <li><a
                            href="HotelController.html#_2_1_发送MQ">2.1.&nbsp;发送MQ</a>
                    </li>

                    <li><a
                            href="HotelController.html#_2_2_保存方法">2.2.&nbsp;保存方法</a>
                    </li>

                    <li><a
                            href="HotelController.html#_2_3_更新">2.3.&nbsp;更新</a>
                    </li>

                    <li><a
                            href="HotelController.html#_2_4_删除">2.4.&nbsp;删除</a>
                    </li>
                </ul>
            </li>
            <li class=""><a class="dd" href="SenseNebulaController.html#header">3.&nbsp;盒子摄像头对接</a>
                <ul class="sectlevel2" style="display: none">
                    <li><a
                            href="SenseNebulaController.html#_3_1_">3.1.&nbsp;</a>
                    </li>

                    <li><a
                            href="SenseNebulaController.html#_3_2_接收数据">3.2.&nbsp;接收数据</a>
                    </li>

                    <li><a
                            href="SenseNebulaController.html#_3_3_">3.3.&nbsp;</a>
                    </li>
                </ul>
            </li>
            <li class="open"><a class="dd" href="WebSocketController.html#header">4.&nbsp;Websocket 测试</a>
                <ul class="sectlevel2" style="display: block">
                    <li><a
                            href="WebSocketController.html#_4_1_">4.1.&nbsp;</a>
                    </li>

                    <li><a
                            href="WebSocketController.html#_4_2_发送消息">4.2.&nbsp;发送消息</a>
                    </li>

                    <li><a
                            href="WebSocketController.html#_4_3_">4.3.&nbsp;</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</div>
<div id="content">
    <div class="sect1"><h2 id="_Websocket 测试"><a class="anchor" href="#_Websocket 测试"></a><a class="link" href="#_Websocket 测试">4.&nbsp;Websocket 测试</a>
    </h2>
        <div class="sectionbody">
            <div class="sect2"><h3 id="_4_1_">
                <a class="anchor" href="#_4_1_"></a>
                <a class="link" href="#_4_1_">4.1.&nbsp;</a>
            </h3>
                <div class="paragraph"><p><strong>URL:</strong><a href="http://{{server}}/api/webSocket/index" class="bare">&nbsp;http://{{server}}/api/webSocket/index</a>
                </p></div>
                <div class="paragraph"><p><strong>Type:</strong>&nbsp;GET</p></div>
                <div class="paragraph"><p><strong>Author:</strong>&nbsp;cuixinfu</p></div>
                <div class="paragraph"><p><strong>Content-Type:</strong>&nbsp;application/x-www-form-urlencoded;charset=UTF-8</p></div>
                <div class="paragraph"><p><strong>Description:</strong>&nbsp;</p></div>
                <div class="paragraph"><p><strong>Request-example:</strong></p></div>
                <div class="listingblock">
                    <div class="content">
                        <pre><code class="bash">curl -X GET -i http://{{server}}/api/webSocket/index</code></pre>
                    </div>
                </div>
                <div class="paragraph"><p><strong>Response-example:</strong></p></div>
                <div class="listingblock">
                    <div class="content">
                        <pre><code class="json">string</code></pre>
                    </div>
                </div>
            </div>

            <div class="sect2"><h3 id="_4_2_发送消息">
                <a class="anchor" href="#_4_2_发送消息"></a>
                <a class="link" href="#_4_2_发送消息">4.2.&nbsp;发送消息</a>
            </h3>
                <div class="paragraph"><p><strong>URL:</strong><a href="http://{{server}}/api/webSocket/sentMessage" class="bare">&nbsp;http://{{server}}/api/webSocket/sentMessage</a>
                </p></div>
                <div class="paragraph"><p><strong>Type:</strong>&nbsp;POST</p></div>
                <div class="paragraph"><p><strong>Author:</strong>&nbsp;cuixinfu</p></div>
                <div class="paragraph"><p><strong>Content-Type:</strong>&nbsp;application/x-www-form-urlencoded;charset=UTF-8</p></div>
                <div class="paragraph"><p><strong>Description:</strong>&nbsp;发送消息</p></div>
                <div class="paragraph"><p><strong>Query-parameters:</strong></p></div>
                <table class="tableblock frame-all grid-all spread">
                    <colgroup>
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                    </colgroup>
                    <thead>
                    <tr>
                        <th class="tableblock halign-left valign-top">Parameter</th>
                        <th class="tableblock halign-left valign-top">Type</th>
                        <th class="tableblock halign-left valign-top">Description</th>
                        <th class="tableblock halign-left valign-top">Required</th>
                        <th class="tableblock halign-left valign-top">Since</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">userId</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">No comments found.</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">-</p></td>
                    </tr>

                    <tr>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">message</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">No comments found.</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">-</p></td>
                    </tr>
                    </tbody>
                </table>
                <div class="paragraph"><p><strong>Request-example:</strong></p></div>
                <div class="listingblock">
                    <div class="content">
                        <pre><code class="bash">curl -X POST -i http://{{server}}/api/webSocket/sentMessage --data 'userId=177&message=success'</code></pre>
                    </div>
                </div>
                <div class="paragraph"><p><strong>Response-example:</strong></p></div>
                <div class="listingblock">
                    <div class="content">
                        <pre><code class="json">Return void.</code></pre>
                    </div>
                </div>
            </div>

            <div class="sect2"><h3 id="_4_3_">
                <a class="anchor" href="#_4_3_"></a>
                <a class="link" href="#_4_3_">4.3.&nbsp;</a>
            </h3>
                <div class="paragraph"><p><strong>URL:</strong><a href="http://{{server}}/api/webSocket/test" class="bare">&nbsp;http://{{server}}/api/webSocket/test</a>
                </p></div>
                <div class="paragraph"><p><strong>Type:</strong>&nbsp;GET</p></div>
                <div class="paragraph"><p><strong>Author:</strong>&nbsp;cuixinfu</p></div>
                <div class="paragraph"><p><strong>Content-Type:</strong>&nbsp;application/x-www-form-urlencoded;charset=UTF-8</p></div>
                <div class="paragraph"><p><strong>Description:</strong>&nbsp;</p></div>
                <div class="paragraph"><p><strong>Query-parameters:</strong></p></div>
                <table class="tableblock frame-all grid-all spread">
                    <colgroup>
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                        <col style="width: 20%;">
                    </colgroup>
                    <thead>
                    <tr>
                        <th class="tableblock halign-left valign-top">Parameter</th>
                        <th class="tableblock halign-left valign-top">Type</th>
                        <th class="tableblock halign-left valign-top">Description</th>
                        <th class="tableblock halign-left valign-top">Required</th>
                        <th class="tableblock halign-left valign-top">Since</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">msg</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">No comments found.</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
                        <td class="tableblock halign-left valign-top"><p class="tableblock">-</p></td>
                    </tr>
                    </tbody>
                </table>
                <div class="paragraph"><p><strong>Request-example:</strong></p></div>
                <div class="listingblock">
                    <div class="content">
                        <pre><code class="bash">curl -X GET -i http://{{server}}/api/webSocket/test?msg=caaqg7</code></pre>
                    </div>
                </div>
                <div class="paragraph"><p><strong>Response-example:</strong></p></div>
                <div class="listingblock">
                    <div class="content">
                        <pre><code class="json">string</code></pre>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <footer class="page-footer"><span class="copyright">Generated by smart-doc at 2023-03-20 11:16:30</span><span
            class="footer-modification">Suggestions,contact,support and error reporting on<a
            href="https://gitee.com/smart-doc-team/smart-doc" target="_blank">&nbsp;Gitee</a>&nbsp;or<a
            href="https://github.com/smart-doc-group/smart-doc.git" target="_blank">&nbsp;Github</a></span></footer>
</div>
<script src="search.js?v=1679282190907"></script>
<script>
    $(function () {
        const Accordion = function (el, multiple) {
            this.el = el || {};
            this.multiple = multiple || false;
            const links = this.el.find('.dd');
            links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown);
        };
        Accordion.prototype.dropdown = function (e) {
            const $el = e.data.el;
            const $this = $(this), $next = $this.next();
            $next.slideToggle();
            $this.parent().toggleClass('open');
            if (!e.data.multiple) {
                $el.find('.submenu').not($next).slideUp("20").parent().removeClass('open');
            }
        };
        new Accordion($('#accordion'), false);
        hljs.highlightAll()
    });
</script>
</body>
</html>
